import QtQuick 2.10
import QtQuick.Window 2.10
import DirModel 1.0

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")


    ListView{
        anchors.fill: parent
        model:DirModel{
            path: "C:/Qt/Tools/mingw730_32/bin"
        }

        delegate: Text{
            text: String("name:%1 path:%2 size:%3")
            .arg(model.fileName)
            .arg(model.filePath)
            .arg(model.size);
        }
    }
}
